 <div class="layui-container fly-marginTop fly-user-main">
       

        <!-- <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
            <li class="layui-nav-item">
                <a href="/u/10260768/">
                    <i class="layui-icon">&#xe68e;</i> 我的主页 </a>
            </li>
            <li class="layui-nav-item layui-this">
                <a href="{:url('index/user/index')}">
                    <i class="layui-icon">&#xe612;</i> 用户中心 </a>
            </li>
            <li class="layui-nav-item ">
                <a href="{:url('index/set/index')}">
                    <i class="layui-icon">&#xe620;</i> 基本设置 </a>
            </li>
            <li class="layui-nav-item ">
                <a href="/user/post/">
                    <i class="iconfont icon-tiezi"></i> 我的帖子 </a>
            </li>
            <li class="layui-nav-item ">
                <a href="/user/message/">
                    <i class="layui-icon">&#xe611;</i> 我的消息 </a>
            </li>
            <li class="layui-nav-item ">
                <a href="/user/product/">
                    <i class="iconfont icon-chanpin"></i> 我的产品 </a>
            </li>
        </ul> -->

        {include file="userLeftBar" /}
        <div class="site-tree-mobile layui-hide">
            <i class="layui-icon">&#xe602;</i>
        </div>
        <div class="site-mobile-shade"></div>
        <div class="fly-panel fly-panel-user" pad20 style="padding-top:20px;">
            <div class="fly-msg" style="margin-bottom: 20px;"> 您的邮箱尚未验证，这比较影响您的帐号安全，
                <a href="/user/activate/">立即去激活？</a>
            </div>
            <div class="layui-row layui-col-space20">
                <div class="layui-col-md6">
                    <div class="fly-panel fly-signin fly-panel-border">
                        <div class="fly-panel-title"> 签到
                    <i class="fly-mid"></i>
                    <a href="javascript:;" class="fly-link" id="LAY_signinHelp">说明</a>
                    <i class="fly-mid"></i>
                    <a href="javascript:;" class="fly-link" id="LAY_signinTop">活跃榜
                        <span class="layui-badge-dot"></span>
                    </a>
                    <span class="fly-signin-days">
                        <?php if ($sign): ?> 已连续签到
                        <cite>{$sign['cn']}</cite>天
                        <?php endif ?>
                    </span>
                </div>
                <!-- 今日签到 -->
                <div class="fly-panel-main fly-signin-main">

                    <?php if ($sign): ?>
                    <button class="layui-btn layui-btn-disabled">今日已签到</button>
                    <span>获得了
                        <cite>{:$sign['cn']*5}</cite>飞吻</span>
                    <?php else: ?>
                    <button class="layui-btn layui-btn-danger" id="LAY_signin">今日签到</button>
                    <span>可以获得
                        <cite>{:$sign['cn']*5}</cite>飞吻</span>
                    <?php endif ?>
                </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="fly-panel fly-panel-border">
                        <div class="fly-panel-title"> 我的会员信息 </div>
                        <div class="fly-panel-main layui-text" style="padding: 18px 15px; height: 50px; line-height: 26px;">
                            <p>您的财富经验值：0</p>
                            <p>您当前为：非 VIP</p>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12" style="margin-top: -20px;">
                    <div class="fly-panel fly-panel-border">
                        <div class="fly-panel-title"> 快捷方式 </div>
                        <div class="fly-panel-main">
                            <ul class="layui-row layui-col-space10 fly-shortcut">
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/user/set/">
                                        <i class="layui-icon">&#xe620;</i>
                                        <cite>修改信息</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/user/set/#avatar">
                                        <i class="layui-icon">&#xe6af;</i>
                                        <cite>修改头像</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/user/set/#pass">
                                        <i class="layui-icon">&#xe607;</i>
                                        <cite>修改密码</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/user/set/#bind">
                                        <i class="layui-icon">&#xe770;</i>
                                        <cite>帐号绑定</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/jie/add/">
                                        <i class="layui-icon">&#xe61f;</i>
                                        <cite>发表新帖</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/column/share/">
                                        <i class="layui-icon">&#xe705;</i>
                                        <cite>查看分享</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4 LAY_search">
                                    <a href="javascript:;">
                                        <i class="layui-icon">&#xe615;</i>
                                        <cite>搜索资源</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/user/post/#collection">
                                        <i class="layui-icon">&#xe600;</i>
                                        <cite>我的收藏</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/jie/15697/">
                                        <i class="layui-icon">&#xe735;</i>
                                        <cite>成为赞助商</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="/jie/2461/">
                                        <i class="layui-icon">&#xe63a;</i>
                                        <cite>关注公众号</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="http://www.layui.com/doc/">
                                        <i class="layui-icon">&#xe63c;</i>
                                        <cite>文档</cite>
                                    </a>
                                </li>
                                <li class="layui-col-sm3 layui-col-xs4">
                                    <a href="http://www.layui.com/demo/">
                                        <i class="layui-icon">&#xe656;</i>
                                        <cite>示例</cite>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    

    <script type="text/javascript">

    layui.use(['jquery', 'layer'], function () {
        $ = layui.jquery;
        layer = layui.layer;

        $('#LAY_signin').click(function () {
            $.ajax({
                url: '{:url('index/Sign/sign')}',
                type: 'GET',
                dataType: 'json',
            })
                .done(function (res) {
                    if (res.error == 1) {
                        layer.msg(res.info, { icon: 5 }, function () {
                        });
                    } else {
                        layer.msg(res.info, { icon: 6 }, function () {
                            location.href = res.url;
                        });
                    }
                })
                .fail(function () {
                    console.log("error");
                });


        })
        $('#LAY_signinTop').click(function () {

            layer.open({
                type: 2,
                title: '签到活跃榜 - TOP 20',
                shadeClose: true,
                shade: 0.8,
                area: ['310px', '60%'],
                content: '{:url('index/sign/signlist')}' //iframe的url
        });



        })



    })





</script>